Fravia's TOOLS OF OUR TRADE Messageboard ~ Moderated
Re: general way
Sunday, 10-Jan-99 05:16:01

the general way is:
run an exehdr or other .exe segment's dumper, like mapwin.exe; (exehdr 3.0 do not understand well from PE exe's, but for olders is good)

find which .exe code segment you are in; (by name of function, or by address; etc)
you have offset of your code in that segment;
segment's file-start is shown by dumper;
add offset_of_code + segments_filestart (eventually + size of .exe header - i don't remember exeactly)

there you are

chao
svd

svd